/**
 * Created by youngpan on 2017/1/7.
 */

define(['app', 'angular', 'angularAMD'], function (app, angular, angularAMD) {
    app.config(function ($routeProvider, $locationProvider) {
        $routeProvider
            .when('/home/category', angularAMD.route({
                templateUrl: 'tpls/category.html',  //template例子。
                controller: 'categoryCtrl',    //控制器名字
                controllerUrl: 'module/category/directive'   //控制器链接
            }))
            .when('/home/category/:id',angularAMD.route({
                template:'<h1 style="text-align: center;font-size: 0.4rem">{{ name }}</h1>',
                controller:'cateCtrl',
                controllerUrl: 'module/category/directive'
            }))
    });
})